<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一个vue</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <!-- <div id="app"></div>
    <div id="demo"><h3>{{text}}</h3></div>
    <script>
        const app = Vue.createApp({
            template:'<h2>hello world</h2>',
        });
        app.mount("#app");
        
        Vue.createApp({
            data:() => ({
                text:'Hi! world',
            })
        }).mount("#demo");
    </script> -->
    <div id='app-4'>{{todo.text}}</div>
    <script>
        var app4 = new Vue({
  el: '#app-4',
  data: {
    todos: [
      { text: '学习 JavaScript' },
      { text: '学习 Vue' },
      { text: '整个牛项目' }
    ]
  }
})
</script>
    
</body>
</html>